package practite.Demo;

import java.util.Scanner;

public class demo2 {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("有多少笔消费");
        int a = sc.nextInt();
        double fand[] = new double[a];
        System.out.println("请输入消费记录");
        for (int i=0;i< fand.length;i++){
            fand[i] = sc.nextDouble();


        }
        double sum = 0;
        for (int t=0;t< fand.length;t++){
            System.out.println((t+1)+"\t\t"+fand[t]);
        }
    }
}
